Labels

sports (42) football (35) fifa 2010 (20) soccer (20) world cup (19) fun (18) google (14) reviews (12) experiements (10) learnings (9) mac (8) software (8) cricket (5) video (5) friends (4) goal (4) keyboard (4) linux (4) music (4) tennis (4) bangalore (3) brazil (3) movie (3) mumbai attacks (3) tips (3) tricks (3) article (2) dharmendra (2) economictimes (2) health (2) heart attack (2) hindi (2) india (2) mavericks (2) osx (2) shortcuts (2) work (2) apsrtc (1) calendar (1) dad (1) maicon (1) responsibility (1) retrospection (1) virtualbox (1)

Wednesday, November 05, 2025

Mac : The Rupee Symbol

 It's amazing how one gets to learn through some accidental usage.

I was writing a blog post on my "Share2Learn" blog and wanted to quote some Python code using the "backtick" symbols. And pressing the "backtick" key ( just below the Escape key ) on my MacBook gave me a "₹" symbol !!!

I was surprised to see it !! My first worry was that something had gone wrong with my system and I had to some how find out another way of getting that "backtick" symbol. I tried a few key combinations and found that I could get it using Option + Backtick

Some Googling helped me learn that this is a new change done in Mac OS 26 ( Tahoe ). And this is done for the India Keyboard layout as shown in the image below

The new ABC - India Keyboard layout on Mac 26 ( Tahoe ) with an Indian Rupee symbol

Pressing the backtick now gives "₹" symbol when using "ABC - India" keyboard as your Input source.

Personally I find it quite odd that the key shows the "backtick" symbol on the physical keyboard where as it displays a "₹" symbol when pressed. But then, may be the people who did this mapping had a strong reason to do it ( and hopefully was not a random choice )

There are other ways to get a "₹" symbol on your MacBook though

  • ⬆ + 4 ---> $ ( Shift + 4 )
  • ⌥ + 4 ---> ₹ ( Option + 4 ) 
  • 🌐 + e and then search for "Indian Rupee Sign" ( 🌐 is also called the Function key )
If you have to display "₹" in your program then you can use the following Unicode Number

  • Unicode Value : 20B9
  • Unicode Name : INDIAN RUPEE SIGN

So, in Python code you could write code in either of the following 2 ways to display Indian Rupee Symbol

>>> print("\u20B9")

>>> print("\N{INDIAN RUPEE SIGN}"
₹ 
You can find more such useful symbols and their corresponding Unicode names at : https://www.unicode.org/charts/charindex.html#I
 

No comments:

Post a Comment